﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace XuLyDuLieu
{
    public partial class frmBoLoc : Form
    {
        #region "[method Init]"
        public frmBoLoc()
        {
            InitializeComponent();
        }
        #endregion

        #region "[show node in treeview in method Load]"
        private void frmBoLoc_Load(object sender, EventArgs e)
        {
            try
            {
                //hiển thị danh sách các bộ lọc cho người dùng.
                TreeNode node = new TreeNode();
                node.Text = "Chia giỏ thuộc tính";
                node.ToolTipText = "Chia giỏ thuộc tính";
                node.Tag = 100;

                TreeNode Node2 = new TreeNode();
                Node2.Text = "Chuẩn hóa dữ liệu";
                Node2.ToolTipText = "Chuẩn hóa dữ liệu có kiểu numeric";
                Node2.Tag = 200;

                treeView1.Nodes.Add(node);
                treeView1.Nodes.Add(Node2);
            }
            catch { }
            
        }
        #endregion

        private void treeView1_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                TreeNode Node = treeView1.SelectedNode;
                frmMain.m_TrangThai = 0;//reset lại = 0;

                frmMain.m_TrangThai = (int)Node.Tag;
                if (frmMain.m_TrangThai > 0)
                    this.Close();
            }
            catch { }
        }

    }
}
